import React from "react";
import "./index.css";

const Solutions = props => {
  const { history } = props;
  const reason = history.location.state;

  return (
    <div className="reason">
      <h2>{reason.name}</h2>
      <div dangerouslySetInnerHTML={{ __html: reason.solution }}></div>
    </div>
  );
};

export default Solutions;
